mailr/db/migrate/20110724125806_create_prefs.rb
Wojciech Todryk 37f548ce46 devel
2011-07-27 20:34:30 +02:00

15 lines
236 B
Ruby
Executable file

class CreatePrefs < ActiveRecord::Migration
def self.up
create_table :prefs do |t|
t.string :theme
t.string :locale
t.references :user
t.timestamps
end
end
def self.down
drop_table :prefs
end
end