Sha256: 7ec89c159c5c4e2b0839e748d08d6cc1761afb833c2b8bc5b75d660c5893dd13
Contents?: true
Size: 432 Bytes
Versions: 3
Compression:
Stored size: 432 Bytes
Contents
class CreateUris < ActiveRecord::Migration def change create_table :uris do |t| t.references :account, index: true t.references :uriable, polymorphic: true, index: true t.string :uri_label t.string :uri t.string :uri_protocol t.boolean :preferred t.integer :position t.integer :lock_version t.timestamps null: false end add_foreign_key :uris, :accounts end end
Version data entries
3 entries across 3 versions & 1 rubygems