Sha256: afbe5bf9c888463f7f7c4bf3fd0440be76e6443b47737dec0f5e359d00a2ec3d

Contents?: true

Size: 399 Bytes

Versions: 9

Compression:

Stored size: 399 Bytes

Contents

class CreateContentBuilders < ActiveRecord::Migration
  def change
    create_table :content_builders do |t|
      t.string :title
      t.string :written_by
      t.datetime :date_publish
      t.text :content
      t.boolean :status, default: false
      t.string :slug
      t.references :content_builder_category, index: true, foreign_key: true

      t.timestamps null: false
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
rails_admin_content_builder-1.3.0 spec/dummy/db/migrate/20160713200803_create_content_builders.rb
alert_message-1.1.8 spec/dummy/db/migrate/20160713200803_create_content_builders.rb
rails_admin_content_builder-1.2.0 spec/dummy/db/migrate/20160713200803_create_content_builders.rb
rails_admin_content_builder-1.1.0 spec/dummy/db/migrate/20160713200803_create_content_builders.rb
rails_admin_content_builder-1.0.6 spec/dummy/db/migrate/20160713200803_create_content_builders.rb
alert_message-1.1.7 spec/dummy/db/migrate/20160713200803_create_content_builders.rb
rails_admin_content_builder-1.0.5 spec/dummy/db/migrate/20160713200803_create_content_builders.rb
rails_admin_content_builder-1.0.4 spec/dummy/db/migrate/20160713200803_create_content_builders.rb
rails_admin_content_builder-1.0.3 spec/dummy/db/migrate/20160713200803_create_content_builders.rb