mailr/db/migrate/20110724125806_create_prefs.rb

15 lines
236 B
Ruby
Raw Normal View History

2011-07-24 15:56:47 +02:00
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