Sha256: 3e0a351b5be36df15e149f1ab7f7701cbd774aa2f3f618985761cbbada4ea7c0

Contents?: true

Size: 489 Bytes

Versions: 3

Compression:

Stored size: 489 Bytes

Contents

class CreatePliesAndPlyRelations < ActiveRecord::Migration
  def change
    create_table :plies do |t|
        t.integer  :user_id
        t.string   :oid
        t.string   :otype
        t.json     :data
        t.datetime :last_modified
        t.datetime :last_checked

        t.timestamps
    end

    create_table :ply_relations do |t|
      t.integer :parent_id
      t.string :parent_type
      t.integer :child_id
      t.string :child_type

      t.timestamps
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pliable-0.2.1 spec/dummy/db/migrate/20140117210156_create_plies_and_ply_relations.rb
pliable-0.2.0 spec/dummy/db/migrate/20140117210156_create_plies_and_ply_relations.rb
pliable-0.1.0 spec/dummy/db/migrate/20140117210156_create_plies_and_ply_relations.rb