* Updated gems * [inprogress] New pagination helpers used instead of pagination presenters * [inprogress] Favorites refactored to use ActiveRecord * [inprogress] PostSets refactored to use a decorator/dependency injection pattern * [inprogress] Made pool/post interaction more robust * Pool#posts now returns an ActiveRelation object * Fixed unit tests
18 lines
435 B
Ruby
18 lines
435 B
Ruby
class CreatePoolVersions < ActiveRecord::Migration
|
|
def up
|
|
create_table :pool_versions do |t|
|
|
t.column :pool_id, :integer
|
|
t.column :post_ids, :text, :null => false, :default => ""
|
|
t.column :updater_id, :integer, :null => false
|
|
t.column :updater_ip_addr, "inet", :null => false
|
|
t.timestamps
|
|
end
|
|
|
|
add_index :pool_versions, :pool_id
|
|
end
|
|
|
|
def down
|
|
drop_table :pool_versions
|
|
end
|
|
end
|