11 lines
190 B
Ruby
11 lines
190 B
Ruby
|
|
class CreateReplies < ActiveRecord::Migration[8.1]
|
||
|
|
def change
|
||
|
|
create_table :replies do |t|
|
||
|
|
t.text :body
|
||
|
|
t.timestamps
|
||
|
|
end
|
||
|
|
|
||
|
|
add_reference :replies, :thread
|
||
|
|
end
|
||
|
|
end
|