Sha256: af82e96aacedddf3d8abbe58ea82dce0d7cad1f60f78722d1f3fedef6caca4fe
Contents?: true
Size: 451 Bytes
Versions: 2
Compression:
Stored size: 451 Bytes
Contents
class CreateStrainArticles < ActiveRecord::Migration def change create_table :strain_articles, id: :uuid do |t| t.uuid :variant_id, index: true, foreign_key: true t.string :strain_type, null: false, default: 'Strain::Article' t.string :title, null: false t.jsonb :body, null: false t.string :slug, null: false t.timestamps null: false end add_index :strain_articles, :slug, :unique => true end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
strain-0.0.2 | db/migrate/20151104200908_create_strain_articles.rb |
strain-0.0.1 | db/migrate/20151104200908_create_strain_articles.rb |