Sha256: 2172e7da0c023fde07a719bbe56c5bd86602fe76a30ffd183ce4aab5cb490579

Contents?: true

Size: 332 Bytes

Versions: 1

Compression:

Stored size: 332 Bytes

Contents

class CreateTables < ActiveRecord::Migration[4.2]
  def change
    create_table :users do |t|
      t.string :user_name
    end

    create_table :roles do |t|
      t.references :user
      t.string :role_name
    end

    create_table :permissions do |t|
      t.references :role
      t.string :permission_name
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dynamic-fields-for-1.2.1 spec/rails_app/db/migrate/001_create_tables.rb