Wrap text
Report abuse
|
|
class CreateUsers < ActiveRecord::Migration
def self.up
create_table :users do |t|
t.string :login
t.string :hashed_password
t.boolean :enabled
t.timestamps
end
User.create(:login => "celeretaudax", :password => 'somepassword',
:password_confirmation => 'somepassword',
:enabled => true )
end
def self.down
drop_table :users
end
end
|