Show More
Commit Description:
select2, ace, moment now work....
Commit Description:
select2, ace, moment now work.
converting navbar
References:
File last commit:
Show/Diff file:
Action:
db/migrate/007_create_rights.rb
| 21 lines
| 615 B
| text/x-ruby
| RubyLexer
|
| r822 | class CreateRights < ActiveRecord::Migration[4.2] | |||
|
|
r0 | def self.up | ||
| r822 | create_table :rights, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci" do |t| | |||
|
|
r0 | t.column 'name', :string | ||
| t.column 'controller', :string | ||||
| t.column 'action', :string | ||||
| end | ||||
| r822 | create_table :rights_roles, :id => false, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci" do |t| | |||
|
|
r0 | t.column 'right_id', :integer | ||
| t.column 'role_id', :integer | ||||
| end | ||||
| add_index :rights_roles, :role_id | ||||
| end | ||||
| def self.down | ||||
| drop_table :rights_roles | ||||
| drop_table :rights | ||||
| end | ||||
| end | ||||
