discourse/db/migrate/20130404143437_create_site_...

11 lines
299 B
Ruby
Raw Normal View History

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