Generate reposts model/table that stores the repost history.
This commit is contained in:
parent
07f8b4c7d8
commit
37cff9c4ba
4 changed files with 32 additions and 0 deletions
12
db/migrate/20131208115327_create_reposts.rb
Normal file
12
db/migrate/20131208115327_create_reposts.rb
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
class CreateReposts < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :reposts do |t|
|
||||
t.string :mentioned
|
||||
t.bigint :postid
|
||||
t.bigint :repostid
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
add_index :reposts, :repostid
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue