mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 02:56:26 -05:00
11 lines
299 B
Ruby
11 lines
299 B
Ruby
|
class CreateSiteContents < ActiveRecord::Migration
|
||
|
def change
|
||
|
create_table :site_contents, force: true, id: false do |t|
|
||
|
t.string :content_type, null: false
|
||
|
t.text :content, null: false
|
||
|
t.timestamps
|
||
|
end
|
||
|
add_index :site_contents, :content_type, unique: true
|
||
|
end
|
||
|
end
|