Sha256: 9f94ba82ca9eaa7456a833dc0d1ed425aab51e9f41ad157979bb4d5af0ca2aad

Contents?: true

Size: 370 Bytes

Versions: 2

Compression:

Stored size: 370 Bytes

Contents

class CreateProperties < ActiveRecord::Migration
  def change
    create_table :properties do |t|
      t.text :value
      t.references :page, index: true, foreign_key: true
      t.references :field, index: true, foreign_key: true
      t.string  :type
      t.json :gallery
      t.string :image
      t.string :file

      t.timestamps null: false
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
blacksand-2.3.0 db/migrate/20151112060015_create_properties.rb
blacksand-2.2.2.1 db/migrate/20151112060015_create_properties.rb