Skip to content

Commit 5ee27a9

Browse files
committed
[WIP] Create tables [incomplete]
1 parent 255586f commit 5ee27a9

7 files changed

+56
-1
lines changed

Gemfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ group :development, :test do
162162
gem 'quiet_assets'
163163
gem 'syntax'
164164
gem 'annotate'
165+
gem 'rspec-rails'
165166
end
166167

167168
group :test do
@@ -171,11 +172,11 @@ group :test do
171172
gem 'database_cleaner'
172173
gem 'fuubar' , '2.0.0.rc1'
173174
gem 'resque_spec'
174-
gem 'rspec-rails'
175175
gem 'simplecov'
176176
gem 'timecop'
177177
gem 'vcr'
178178
gem 'webmock', '<1.16'
179+
gem 'shoulda-matchers'
179180
end
180181

181182
group :production do

Gemfile.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,8 @@ GEM
606606
sax-machine (0.2.1)
607607
nokogiri (~> 1.6.0)
608608
sexp_processor (4.4.3)
609+
shoulda-matchers (2.6.1)
610+
activesupport (>= 3.0.0)
609611
sidekiq (3.2.1)
610612
celluloid (>= 0.15.2)
611613
connection_pool (>= 2.0.0)
@@ -805,6 +807,7 @@ DEPENDENCIES
805807
sanitize
806808
sass (~> 3.2.9)
807809
sass-rails (~> 3.2.6)
810+
shoulda-matchers
808811
sidekiq
809812
simple_form
810813
simplecov
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
class CreateTeamsAccounts < ActiveRecord::Migration
2+
def change
3+
create_table :teams_accounts do |t|
4+
t.integer :team_id, null: false
5+
t.timestamps
6+
end
7+
end
8+
end
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
class CreateTeamsLinks < ActiveRecord::Migration
2+
def change
3+
create_table :teams_links do |t|
4+
t.string :name
5+
t.string :url
6+
t.integer :team_id, null: false
7+
t.timestamps
8+
end
9+
end
10+
end
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
class CreateTeamsLocations < ActiveRecord::Migration
2+
def change
3+
create_table :teams_locations do |t|
4+
t.string :name
5+
t.string :description
6+
t.string :address
7+
t.string :city, default: nil
8+
t.string :state_code, default: nil
9+
t.string :country, default: nil
10+
t.integer :team_id, null: false
11+
t.timestamps
12+
end
13+
# field :points_of_interest, type: Array, default: []
14+
# field :coordinates, type: Array
15+
end
16+
end
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
class CreateTeamsMembers < ActiveRecord::Migration
2+
def change
3+
create_table :teams_members do |t|
4+
t.integer :team_id, null: false
5+
t.integer :user_id, null: false
6+
t.timestamps
7+
end
8+
end
9+
end
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
class CreatePgTeams < ActiveRecord::Migration
2+
def change
3+
create_table :pg_teams do |t|
4+
5+
t.timestamps
6+
end
7+
end
8+
end

0 commit comments

Comments
 (0)