discourse/db/migrate/20130404143437_create_site_contents.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
347 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class CreateSiteContents < ActiveRecord::Migration[4.2]
def change
create_table :site_contents, force: true, id: false do |t|
t.string :content_type, null: false
t.text :content, null: false
2017-08-07 23:48:36 +08:00
t.timestamps null: false
end
add_index :site_contents, :content_type, unique: true
end
end