12 lines
240 B
Ruby
12 lines
240 B
Ruby
class CreateReposts < ActiveRecord::Migration
|
|
def change
|
|
create_table :reposts do |t|
|
|
t.string :mentioned
|
|
t.integer :postid
|
|
t.integer :repostid
|
|
|
|
t.timestamps
|
|
end
|
|
add_index :reposts, :repostid
|
|
end
|
|
end
|