method

change

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: CreateActionTextTables
change() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actiontext/db/migrate/20180528164100_create_action_text_tables.rb, line 2
  def change
    create_table :action_text_rich_texts do |t|
      t.string     :name, null: false
      t.text       :body, size: :long
      t.references :record, null: false, polymorphic: true, index: false

      t.timestamps

      t.index [ :record_type, :record_id, :name ], name: "index_action_text_rich_texts_uniqueness", unique: true
    end
  end
Register or log in to add new notes.