discourse/db/migrate/20120619153349_drop_read_posts.rb

15 lines
337 B
Ruby
Raw Normal View History

2013-02-05 14:16:51 -05:00
class DropReadPosts < ActiveRecord::Migration
def up
drop_table :read_posts
end
def down
create_table :read_posts, id: false do |t|
t.integer :forum_thread_id, null: false
t.integer :user_id, null: false
t.column :page, :integer, null: false
t.column :seen, :integer, null: false
2013-02-25 11:42:20 -05:00
end
2013-02-05 14:16:51 -05:00
end
end