forked from bofh/fetsite
a lot of new models ...
Fotogallary, gremien, fetprofil,
This commit is contained in:
15
db/migrate/20130819133257_create_fetprofiles.rb
Normal file
15
db/migrate/20130819133257_create_fetprofiles.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
class CreateFetprofiles < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :fetprofiles do |t|
|
||||
t.string :vorname
|
||||
t.string :nachname
|
||||
t.string :short
|
||||
t.string :fetmailalias
|
||||
t.text :desc
|
||||
t.string :picture
|
||||
t.boolean :active
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
11
db/migrate/20130819133330_create_gremien.rb
Normal file
11
db/migrate/20130819133330_create_gremien.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class CreateGremien < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :gremien do |t|
|
||||
t.string :name
|
||||
t.text :desc
|
||||
t.string :typ
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
13
db/migrate/20130819133446_create_memberships.rb
Normal file
13
db/migrate/20130819133446_create_memberships.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
class CreateMemberships < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :memberships do |t|
|
||||
t.string :fetprofile_id
|
||||
t.string :gremium_id
|
||||
t.date :start
|
||||
t.date :stop
|
||||
t.string :typ
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
11
db/migrate/20130819133607_create_galleries.rb
Normal file
11
db/migrate/20130819133607_create_galleries.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class CreateGalleries < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :galleries do |t|
|
||||
t.string :name
|
||||
t.text :desc
|
||||
t.date :datum
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
12
db/migrate/20130819133729_create_fotos.rb
Normal file
12
db/migrate/20130819133729_create_fotos.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
class CreateFotos < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :fotos do |t|
|
||||
t.string :title
|
||||
t.text :desc
|
||||
t.integer :gallery_id
|
||||
t.string :datei
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user