Sha256: e32f674892754e4c864131bde8e39dad8efd803851644e0df8de592b158b0738
Contents?: true
Size: 510 Bytes
Versions: 10
Compression:
Stored size: 510 Bytes
Contents
Sequel.migration do up do create_table(:events) do primary_key :id String :course_id DateTime :from DateTime :to foreign_key :location_id, :locations index :course_id end create_table(:locations) do primary_key :id String :name, limit:100 String :address, limit: 100 String :postal_code, limit: 15 String :city, limit: 100 String :url end end down do drop_table(:locations) drop_table(:events) end end
Version data entries
10 entries across 10 versions & 1 rubygems