You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
547 B
16 lines
547 B
class SorceryCore < ActiveRecord::Migration
|
|
def self.up
|
|
create_table :users do |t|
|
|
t.string :username, :null => false # if you use another field as a username, for example email, you can safely remove this field.
|
|
t.string :email, :default => nil # if you use this field as a username, you might want to make it :null => false.
|
|
t.string :crypted_password, :default => nil
|
|
t.string :salt, :default => nil
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
|
|
def self.down
|
|
drop_table :users
|
|
end
|
|
end
|