Class: CreateRestClient

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/restful_api_authentication/install/templates/create_rest_client.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
# File 'lib/generators/restful_api_authentication/install/templates/create_rest_client.rb', line 2

def change
  create_table :rest_clients do |t|
    t.string :name
    t.text :description
    t.string :api_key
    t.string :secret
    t.boolean :is_master
    t.boolean :disabled
    t.timestamps
  end
end