Method: WithModel::Model::DSL#table
- Defined in:
- lib/with_model/model/dsl.rb
#table(options = {}, &block) ⇒ Object
Provide a schema definition for the table, passed to ActiveRecord's create_table.
The table name will be auto-generated.
15 16 17 18 |
# File 'lib/with_model/model/dsl.rb', line 15 def table( = {}, &block) @model. = @model.table_block = block end |