diff options
Diffstat (limited to 'db/migrate/20120129094444_create_whitelists.rb')
-rw-r--r-- | db/migrate/20120129094444_create_whitelists.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20120129094444_create_whitelists.rb b/db/migrate/20120129094444_create_whitelists.rb new file mode 100644 index 0000000..9e31632 --- /dev/null +++ b/db/migrate/20120129094444_create_whitelists.rb @@ -0,0 +1,15 @@ +class CreateWhitelists < ActiveRecord::Migration + def self.up + create_table :whitelists do |t| + t.string :name + t.string :whitelistable_type + t.integer :whitelistable_id + t.integer :position + t.timestamps + end + end + + def self.down + drop_table :whitelists + end +end |