| Class | ApplicationTable |
| In: |
app/models/application_table.rb
|
| Parent: | ActiveRecord::Base |
アプリケーションで利用するテーブルのクラス
# File app/models/application_table.rb, line 32
32: def create_table
33: script_generate = Pathname.new(RAILS_ROOT) + "script/generate"
34: rest = table_columns.map(&:spec)
35: rest |= ['--pretend'] if pretend?
36: system(ruby, script_generate.to_s, "application_table", name, *rest)
37: end