discourse/db/migrate/20120619153349_drop_read_posts.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
373 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class DropReadPosts < ActiveRecord::Migration[4.2]
2013-02-06 03:16:51 +08:00
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-26 00:42:20 +08:00
end
2013-02-06 03:16:51 +08:00
end
end