demarches-normaliennes/db/migrate/20151124085333_create_quartier_prioritaire.rb

13 lines
299 B
Ruby
Raw Normal View History

class CreateQuartierPrioritaire < ActiveRecord::Migration
def change
create_table :quartier_prioritaires do |t|
t.string :code
t.string :nom
t.string :commune
t.text :geometry
end
add_reference :quartier_prioritaires, :dossier, references: :dossiers
end
end