mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 04:51:14 +00:00
22 lines
402 B
Ruby
22 lines
402 B
Ruby
class CreateFirms < ActiveRecord::Migration
|
|
def self.up
|
|
create_table :firms do |t|
|
|
t.string :name
|
|
t.string :y_code
|
|
t.string :email
|
|
t.string :website
|
|
t.string :phone
|
|
t.string :address
|
|
t.integer :zipcode
|
|
t.string :town
|
|
t.integer :owner
|
|
t.string :opentime
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
|
|
def self.down
|
|
drop_table :firms
|
|
end
|
|
end
|