Class: CreateRailwayCompanies

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/templates/migrations/railway_companies.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



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

def change
  create_table :railway_companies do |t|
    t.integer :railway_id,               null: false
    t.string :name,                      null: false
    t.string :kana_name
    t.string :official_name
    t.string :abbreviated_name
    t.string :url
    t.integer :company_type
    t.integer :sort

    # t.datetime :deleted_at
    t.timestamps
  end
end