Class: GenerateRailsApiDocumentationAttributesTable

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/rails_api_doc/templates/api_datum_migration.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/generators/rails_api_doc/templates/api_datum_migration.rb', line 3

def change
  create_table :rails_api_doc_api_data do |t|
    t.integer :api_type

    t.string :action_type
    t.string :api_action
    t.string :type
    t.string :name
    t.string :special
    t.string :desc

    t.text :nesting
  end
end