Sha256: c6166a55cd3cb0092a7f6f7482bf28823a524cd893f513320e7e3d185e48a779

Contents?: true

Size: 409 Bytes

Versions: 13

Compression:

Stored size: 409 Bytes

Contents

class CreateGutsContents < ActiveRecord::Migration
  def change
    create_table :guts_contents do |t|
      t.string :title
      t.string :slug
      t.text :tags, null: true
      t.text :content, null: true
      t.integer :visible, default: 1, limit: 1
      t.references :type
      t.references :user

      t.timestamps null: false
    end

    add_index :guts_contents, :slug, unique: true
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
guts-3.0.1 db/migrate/20160309030237_create_guts_contents.rb
guts-3.0.0 db/migrate/20160309030237_create_guts_contents.rb
guts-2.1.0 db/migrate/20160309030237_create_guts_contents.rb
guts-2.0.2 db/migrate/20160309030237_create_guts_contents.rb
guts-2.0.1 db/migrate/20160309030237_create_guts_contents.rb
guts-2.0.0 db/migrate/20160309030237_create_guts_contents.rb
guts-1.4.0 db/migrate/20160309030237_create_guts_contents.rb
guts-1.3.6 db/migrate/20160309030237_create_guts_contents.rb
guts-1.3.5 db/migrate/20160309030237_create_guts_contents.rb
guts-1.3.4 db/migrate/20160309030237_create_guts_contents.rb
guts-1.3.3 db/migrate/20160309030237_create_guts_contents.rb
guts-1.3.2 db/migrate/20160309030237_create_guts_contents.rb
guts-1.3.1 db/migrate/20160309030237_create_guts_contents.rb