This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
binaryattraction/schema/migrations/001_create_users_migration.rb

16 lines
321 B
Ruby
Raw Normal View History

2008-10-01 02:19:35 -04:00
class CreateUsersMigration < ActiveRecord::Migration
def self.up
create_table :users do |t|
t.string :user_name, :limit => 32
t.string :auth_token
t.boolean :administrator
t.datetime :created_at
end
add_index :users, :user_name
end
def self.down
drop_table :users
end
end