thingspeak/db/migrate/20110528172838_create_failedlogins.rb

16 lines
267 B
Ruby
Raw Normal View History

class CreateFailedlogins < ActiveRecord::Migration
def self.up
create_table :failedlogins do |t|
t.string :login
t.string :password
t.string :ip_address
t.timestamps
end
end
def self.down
drop_table :failedlogins
end
end