11 lines
287 B
Ruby
11 lines
287 B
Ruby
class CreateCollectionPublications < ActiveRecord::Migration[8.1]
|
|
def change
|
|
create_table :collection_publications do |t|
|
|
t.references :collection, null: false, foreign_key: true, index: true
|
|
t.string :key, index: { unique: true }
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|