12 lines
238 B
Ruby
12 lines
238 B
Ruby
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
|