Sha256: 915e2183d086556dfc3db908c0d4c898d99d810bdd7953ff4c6cb77b141ab4c3
Contents?: true
Size: 735 Bytes
Versions: 1
Compression:
Stored size: 735 Bytes
Contents
class CreateMyArClass < ActiveRecord::Migration def change create_table :users do |t| t.string :name t.string :email t.integer :salutation_id t.integer :lock_version, default: 0 end create_table :roles do |t| t.string :name t.integer :user_id t.integer :lock_version, default: 0 end create_table :permissions do |t| t.string :name t.integer :role_id t.integer :lock_version, default: 0 end create_table :salutations do |t| t.string :name t.integer :lock_version, default: 0 end create_table :addresses do |t| t.string :street t.integer :user_id t.integer :lock_version, default: 0 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activerecord_to_poro-0.0.9 | spec/ar_support/db/migrate/20140127093447_create_my_ar_class.rb |