Class: CreateRailwayLines
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateRailwayLines
- Defined in:
- lib/generators/templates/migrations/railway_lines.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/generators/templates/migrations/railway_lines.rb', line 2 def change create_table :railway_lines do |t| t.references :railway_company, null: false, index: true t.string :name, null: false t.string :kana_name t.string :official_name t.string :color_code t.string :color_name t.integer :line_type t.decimal :longitude, precision: 17, scale: 14 t.decimal :latitude, precision: 17, scale: 14 t.integer :zoom t.integer :sort # t.datetime :deleted_at t. end end |